import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/courses',
    name: 'Courses',
    component: () => import('@/views/Courses/Courses')
  },
  {
    path: '/courses/detail',
    name: 'CourseDetail',
    component: () => import('@/views/Courses/Detail')
  },
  {
    path: '/developer',
    name: 'Developer',
    component: () => import('@/views/Developer')
  },
  {
    path: '/paths',
    name: 'Paths',
    component: () => import('@/views/Paths/Paths')
  },
  {
    path: '/paths/detail',
    name: 'PathsDetail',
    component: () => import('@/views/Paths/Detail')
  }
]

const router = new VueRouter({
  routes
})

export default router
